from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def sou(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜索菜谱")')
        ele=self.find_ele_(loc)
        return ele
    def ss(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele_(loc)
        return ele
    def jh(self):
        loc=(By.ID,'com.xiachufang:id/iv_home_upload')
        ele=self.find_ele_(loc)
        return ele
    def an(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        ele=self.find_ele_(loc)
        return ele
    def fh(self):
        loc=(By.ACCESSIBILITY_ID,'返回')
        ele=self.find_ele_(loc)
        return ele
    def dy(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.xiachufang:id/search_suggest_group_3" and @text="迷糊"]')
        ele=self.find_ele_(loc)
        return ele

